package com.example.administrator.ygddriver.order.getorder;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

public class PickUpRequestBean {


    /**
     * success : true
     * errorCode :
     * localizedMessage : 接件列表查询成功
     * result : [{"c_networklocation":"中国辽宁省沈阳市沈北新区蒲昌路","c_branches":"35a2004008734b50a5ce60df03749565","c_networkname":"来来来","c_waybillnumber":1,"c_distance":604.4,"c_longitude ":604.4,"c_latitude ":604.4,"c_parcelnumber":1},{"c_networklocation":"中国辽宁省沈阳市沈北新区蒲昌路","c_branches":"35b1fe2a20b240d792b6cbf02a0e861c","c_networkname":"哦哦","c_waybillnumber":1,"c_distance":604.4,"c_longitude ":604.4,"c_latitude ":604.4,"c_parcelnumber":2},{"c_networklocation":"中国辽宁省沈阳市沈北新区蒲昌路","c_branches":"68b0b385e2ae4dc3aa79344efc8d528c","c_networkname":"许","c_waybillnumber":2,"c_distance":604.4,"c_longitude ":604.4,"c_latitude ":604.4,"c_parcelnumber":8}]
     */

    private boolean success;
    private String errorCode;
    private String localizedMessage;
    private List<ResultBean> result;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getLocalizedMessage() {
        return localizedMessage;
    }

    public void setLocalizedMessage(String localizedMessage) {
        this.localizedMessage = localizedMessage;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    public static class ResultBean implements Parcelable {
        /**
         * c_networklocation : 中国辽宁省沈阳市沈北新区蒲昌路
         * c_branches : 35a2004008734b50a5ce60df03749565
         * c_networkname : 来来来
         * c_waybillnumber : 1
         * c_distance : 604.4
         * c_longitude  : 604.4
         * c_latitude  : 604.4
         * c_parcelnumber : 1
         */

        private String c_networklocation;
        private String c_branches;
        private String c_networkname;
        private int c_waybillnumber;
        private double c_distance;
        private double c_longitude;
        private double c_latitude;
        private int c_parcelnumber;

        public String getC_networklocation() {
            return c_networklocation;
        }

        public void setC_networklocation(String c_networklocation) {
            this.c_networklocation = c_networklocation;
        }

        public String getC_branches() {
            return c_branches;
        }

        public void setC_branches(String c_branches) {
            this.c_branches = c_branches;
        }

        public String getC_networkname() {
            return c_networkname;
        }

        public void setC_networkname(String c_networkname) {
            this.c_networkname = c_networkname;
        }

        public int getC_waybillnumber() {
            return c_waybillnumber;
        }

        public void setC_waybillnumber(int c_waybillnumber) {
            this.c_waybillnumber = c_waybillnumber;
        }

        public double getC_distance() {
            return c_distance;
        }

        public void setC_distance(double c_distance) {
            this.c_distance = c_distance;
        }

        public double getC_longitude() {
            return c_longitude;
        }

        public void setC_longitude(double c_longitude) {
            this.c_longitude = c_longitude;
        }

        public double getC_latitude() {
            return c_latitude;
        }

        public void setC_latitude(double c_latitude) {
            this.c_latitude = c_latitude;
        }

        public int getC_parcelnumber() {
            return c_parcelnumber;
        }

        public void setC_parcelnumber(int c_parcelnumber) {
            this.c_parcelnumber = c_parcelnumber;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.c_networklocation);
            dest.writeString(this.c_branches);
            dest.writeString(this.c_networkname);
            dest.writeInt(this.c_waybillnumber);
            dest.writeDouble(this.c_distance);
            dest.writeDouble(this.c_longitude);
            dest.writeDouble(this.c_latitude);
            dest.writeInt(this.c_parcelnumber);
        }

        public ResultBean() {
        }

        protected ResultBean(Parcel in) {
            this.c_networklocation = in.readString();
            this.c_branches = in.readString();
            this.c_networkname = in.readString();
            this.c_waybillnumber = in.readInt();
            this.c_distance = in.readDouble();
            this.c_longitude = in.readDouble();
            this.c_latitude = in.readDouble();
            this.c_parcelnumber = in.readInt();
        }

        public static final Parcelable.Creator<ResultBean> CREATOR = new Parcelable.Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel source) {
                return new ResultBean(source);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };
    }
}
